package com.example.lvsuo.service.impl;

import com.example.lvsuo.entity.vo.ClientVo;
import com.example.lvsuo.service.IClientService;
import com.example.lvsuo.entity.Client;
import com.example.lvsuo.mapper.ClientMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 客户表 服务实现类
 * </p>
 *
 * @author 心心念念
 * @since 2021-03-30
 */
@Service
public class ClientServiceImpl extends ServiceImpl<ClientMapper, Client> implements IClientService {

    @Autowired
    ClientMapper cm;

    @Override
    public void addClient(ClientVo c) {
        cm.addClient(c);
    }

    @Override
    public String queryId() {
        return cm.queryId();
    }

    @Override
    public List<Client> seniorQuery(ClientVo c) {
        return cm.seniorQuery(c);
    }


}
